package cn.net.msg.service;

import java.util.HashMap;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import cn.net.msg.dao.TbExamFilesDao;
import cn.net.msg.model.ReturnNewExamFilesBean;
import cn.net.msg.model.TbExamFiles;
import cn.net.msg.service.base.Order;

@Component("tbExamFilesService")
public class TbExamFilesService {

    @Resource(name="tbExamFilesDao")
    private TbExamFilesDao dao;

    @Transactional
    public int getUserGradeId(long userid){
        return dao.getUserGradeId(userid);
    }

    @Transactional
    public List<TbExamFiles> getExamsPapersForList(int firstIndex,
            int maxResult,List<HashMap<String,Object>> queryParams, Order order, String propertyName){
        return dao.getExamsPapersForList(firstIndex, maxResult, queryParams, order, propertyName);
    }
    
    @Transactional
    public List<ReturnNewExamFilesBean> getNewExamPapersForList(long userid){
        return dao.getNewExamPapersForList(userid);
    }
}
